<template >
    <div >
        <h1 @click="showName">学生姓名:{{name}}</h1>
        <h1 >学生性别:{{sex}}</h1>
    </div>
</template>



<script>


// import{hunhe,hunhe2} from '../mixin' 局部
export default {
    name:'StudentName',
    data() {
        return {
            name:'JJ',
            sex: '男'
        }
    },
    mounted() {
        console.log("你好啊",this.name)
    },
    // mixins:[hunhe,hunhe2] 局部
   }
</script>
